
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span10" id="datacontent">

            <ul class="breadcrumb">
                <li><a href="/index/index">首页</a> <span class="divider">/</span></li>
                <li class="active">第三方资讯管理</li>
            </ul>
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="javascript:;" >第三方资讯管理</a>
                </li>
                <li >
                    <select name="belong" id="belong" style="border-bottom:0;">

                        <?php foreach($list as $key=>$value){?>
                            <option value="<?=$value['belong']?>" <?php if ($belong==$value['belong']) echo 'selected' ?>><?=$value['name']?></option>
                        <?php }?>
                    </select>
                </li>
            </ul>
            <script>
                $('#belong').change( function(){
                    var belong =$('#belong').val();
                    // window.location.href="index.php?content-master-xdfzx&belong="+belong;;
                    window.location.href="<?=\yii\helpers\Url::to(['information/index'])?>?belong="+belong;
                })
            </script>

            <table class="table table-hover">
                <thead>
                <tr>
                    <th>标题</th>
                    <th>链接</th>
                    <th>编辑人</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($content as $k=>$v){?>
                    <tr>
                        <td><?=$v['name']?></td>
                        <td>
                            <a href="<?=\yii\helpers\Url::to(['information/detail','id'=>$v['id'],'page'=>$page_index,'belong'=>$belong])?>" target="_blank">
                                <?=\yii\helpers\Url::to(['information/detail','id'=>$v['id'],'page'=>$page_index,'belong'=>$belong])?>
                            </a>
                        </td>
                        <td><?=$v['edit']?></td>
                        <td>
                            <div >
                                <a class="btn" href="<?=\yii\helpers\Url::to(['information/detail','id'=>$v['id'],'page'=>$page_index,'belong'=>$belong])?>" title="查看详情"><em class="icon-edit"></em>查看详情</a>
                            </div>
                        </td>
                    </tr>
                <?php }?>
                </tbody>
            </table>
            <div class="pagination pagination-right">
                <?php use yii\widgets\LinkPager;
                echo LinkPager::widget([
                    'pagination' => $page,
                ])?>
            </div>
        </div>
    </div>
</div>



